package com.qianfeng.openapi.bean;


import java.util.List;

/**
 * 根据前段的需求封装对应的实体数据类
 * @author
 */

public class TableData<T> {
    //标记
    private int code=0;
    //接收的信息
    private String msg;
    //总条数
    private long count;
    //查询的结果集
    private List<T> data;

    public TableData() {
    }

    public TableData(long count, List<T> data) {
        this.count = count;
        this.data = data;
    }

    public int getCode() {

        return code;
    }

    public void setCode(int code) {

        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public long getCount() {
        return count;
    }

    public void setCount(long count) {
        this.count = count;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }
}
